﻿<Window x:Class="VNotifyWPFExample.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        
   xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
   xmlns:WinForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"    
        
    Title="VNotify WPF Example" Height="366" Width="524" Name="PrimaryWindow" ResizeMode="CanResize" MinHeight="348" MinWidth="400" Icon="/VNotifyWPFExample;component/Images/Send.png" Loaded="PrimaryWindow_Loaded" Closing="PrimaryWindow_Closing">
    <StackPanel Margin="10">
        <Grid Height="Auto" Name="InputEntryGrid" Width="Auto" ShowGridLines="False">
            <Grid.RowDefinitions>
                <RowDefinition Height="72" />
                <RowDefinition Height="50" />
                <RowDefinition Height="14" />
                <RowDefinition Height="100" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="70" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="1" Margin="0,0,10,0" Name="image1" Stretch="UniformToFill" Source="/Images/wpf-logo.png" SnapsToDevicePixels="False" Opacity="1" Width="203" Height="59" HorizontalAlignment="Right" VerticalAlignment="Top" />
            
            <Label Name="APIKeyLabel" FlowDirection="RightToLeft" Margin="0" Grid.Row="1" Padding="3">API Key</Label>
            <Label FlowDirection="RightToLeft" Margin="0" Name="MessageLabel" Grid.Row="3" FontSize="14" FontWeight="Bold" Padding="3">Message</Label>
            <TextBox Margin="0" Name="Message" Grid.Column="1" Grid.Row="3" BorderThickness="2" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" BorderBrush="Gray" />
            <StackPanel Grid.Column="1" Margin="0" Name="APIKeyStackPanel" Grid.Row="1">
                <TextBox Height="27" Name="APIKey" Width="Auto" BorderThickness="1" TextWrapping="NoWrap" AcceptsReturn="False" Grid.Row="1" OverridesDefaultStyle="False" BorderBrush="Gray" />
                <CheckBox Height="Auto" Name="RememberAPIKey" Width="Auto" FlowDirection="RightToLeft" Margin="5">Remember Key</CheckBox>
            </StackPanel>
        </Grid>
        <StackPanel Height="Auto" Name="BottomStack" Width="Auto" Orientation="Horizontal" FlowDirection="RightToLeft">
            <Button Height="42" Name="Send" Width="142" Margin="15" Click="Send_Click">
                <StackPanel Orientation="Horizontal" FlowDirection="LeftToRight">
                    <TextBlock FontSize="16">Send</TextBlock>
                    <Image Height="23" Name="ButtonImage" Stretch="None" HorizontalAlignment="Center" Source="Images/Send.png" />
                </StackPanel>
            </Button>
            <wfi:WindowsFormsHost HorizontalAlignment="Center" VerticalAlignment="Center">
                <WinForms:PictureBox Height="15" x:Name="SendingAnimation" Width="128" />
            </wfi:WindowsFormsHost>
        </StackPanel>
    </StackPanel>
</Window>
